package utils

import (
    "bytes"
)

func StringConn(strs []string, sep string) string {
    if strs == nil {
        return ""
    }
    length := len(strs)
    if length == 0 {
        return ""
    }
    b := bytes.Buffer{}
    b.WriteString(strs[0])
    for i := 1; i < length; i++ {
        b.WriteString(sep)
        b.WriteString(strs[i])
    }
    retStr := b.String()
    return retStr
}
